﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Quellenverwaltung.LoadingIndicator"
	x:Name="UserControl" Height="71.2" Width="68.8"
	xmlns:wpf="clr-namespace:Quellenverwaltung.WPF">

	<UserControl.Resources>
	                <Color x:Key="FilledColor" A="255" B="155" R="155" G="155"/>
                    <Color x:Key="UnfilledColor" A="0" B="155" R="155" G="155"/>

                    <Storyboard x:Key="Animation0" FillBehavior="Stop" BeginTime="00:00:00.0" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation1" BeginTime="00:00:00.1" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_01" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation2" BeginTime="00:00:00.2" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_02" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation3" BeginTime="00:00:00.3" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_03" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation4" BeginTime="00:00:00.4" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_04" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation5" BeginTime="00:00:00.5" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_05" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation6" BeginTime="00:00:00.6" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_06" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Animation7" BeginTime="00:00:00.7" RepeatBehavior="Forever">
                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="_07" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource FilledColor}"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.8" Value="{StaticResource UnfilledColor}"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
	</UserControl.Resources>
	            <UserControl.Triggers>
                    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                        <BeginStoryboard Storyboard="{StaticResource Animation0}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation1}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation2}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation3}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation4}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation5}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation6}"/>
                        <BeginStoryboard Storyboard="{StaticResource Animation7}"/>
                    </EventTrigger>
                </UserControl.Triggers>   

	<Grid x:Name="LayoutRoot">
		<Canvas x:Name="loadingIndicator1" HorizontalAlignment="Left" Height="69.8" VerticalAlignment="Top" Width="68.8">
			<Canvas.Resources>
				<Style TargetType="{x:Type Ellipse}">
					<Setter Property="Width" Value="15"/>
					<Setter Property="Height" Value="15" />
					<Setter Property="Fill" Value="#FFFFFFFF" />
				</Style>
			</Canvas.Resources>

                    <Ellipse x:Name="_00" Canvas.Left="7" Canvas.Top="28.2"/>
                    <Ellipse x:Name="_01" Canvas.Top="14.2" Canvas.Left="11.75"/>
                    <Ellipse x:Name="_02" Canvas.Left="25.75" Canvas.Top="7.95"/>
                    <Ellipse x:Name="_03" Canvas.Left="40" Canvas.Top="13.95"/>
                    <Ellipse x:Name="_04" Canvas.Left="45.75" Canvas.Top="27.95" />
                    <Ellipse x:Name="_05" Canvas.Left="40" Canvas.Top="41.7"/>
                    <Ellipse x:Name="_06" Canvas.Left="26" Canvas.Top="46.95"/>
                    <Ellipse x:Name="_07" Canvas.Top="41.45" Canvas.Left="12.25" />
			<Ellipse Stroke="{x:Null}" Width="39.5" Height="39.5" Canvas.Left="15" Canvas.Top="15.6" Fill="{x:Null}"/>
		</Canvas>
	</Grid>
</UserControl>